package com.springlearn.springsecurity.service;

import com.springlearn.springsecurity.mapper.UserMapper;
import com.springlearn.springsecurity.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author llj
 * @create 2022-04-19 20:59
 */

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;


    public User getUser(String name){
        return userMapper.getUserByUserName(name);
    }


}
